package com.supplychain.scm.core.delay.handler;

import com.supplychain.scm.core.delay.message.RedissonMessage;
import org.springframework.messaging.Message;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName RedissonListenerErrorHandler
 * @createTime 17:17:00 2022/10/14
 */
@FunctionalInterface
public interface RedissonListenerErrorHandler {

    /**
     * error handler
     *
     * @param message          redisson message
     * @param messagingMessage spring message
     * @param throwable        throwable
     */
    void handleError(RedissonMessage message, Message<?> messagingMessage, Throwable throwable);

}
